.class Lcom/direction/hold/ui/CommonActivity$1;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/direction/hold/ui/CommonActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/CommonActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method private a(I)V
    .locals 1

    :goto_0
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getSelectedItemPosition()I

    move-result v0

    if-eq v0, p1, :cond_1

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0, p1}, Landroid/widget/ListView;->setSelection(I)V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->isFocused()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->clearFocus()V

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->requestFocusFromTouch()Z

    goto :goto_0

    :cond_1
    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/4 v4, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    invoke-static {v0}, Lcn/cheln/explorer/ds/database/c;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    const/4 v0, 0x2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    iget-object v0, v0, Lcn/cheln/explorer/actions/OperationUtil;->h:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->o:Lcn/cheln/explorer/actions/OperationUtil;

    iget-object v0, v0, Lcn/cheln/explorer/actions/OperationUtil;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    invoke-static {}, Lcn/cheln/explorer/actions/a;->a()V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/CommonActivity;->a(Z)V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/CommonActivity;->a(I)V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/support/adapter/MapAdapter;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->requestLayout()V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->invalidate()V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/CommonActivity;->v()V

    invoke-static {}, Lcn/cheln/explorer/util/a;->a()Lcn/cheln/explorer/util/a;

    move-result-object v0

    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v0, v1}, Lcn/cheln/explorer/util/a;->a(Lcom/direction/hold/ui/CommonActivity;)V

    iget-object p0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p0, Landroid/app/Dialog;

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    invoke-virtual {p0}, Landroid/app/Dialog;->cancel()V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->c:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;

    invoke-virtual {p0}, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->notifyDataSetChanged()V

    goto :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->notifyDataSetChanged()V

    goto :goto_0

    :pswitch_4
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/CommonActivity;->w()V

    goto/16 :goto_0

    :pswitch_5
    iget v0, p1, Landroid/os/Message;->arg1:I

    invoke-direct {p0, v0}, Lcom/direction/hold/ui/CommonActivity$1;->a(I)V

    goto/16 :goto_0

    :pswitch_6
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/CommonActivity;->x()V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v0, Lcom/direction/hold/ui/CommonActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v1, v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->b(Lcn/cheln/explorer/beans/FileInfo;)I

    move-result v0

    invoke-direct {p0, v0}, Lcom/direction/hold/ui/CommonActivity$1;->a(I)V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->f:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->cancel()V

    goto/16 :goto_0

    :pswitch_7
    invoke-static {}, Lcn/cheln/explorer/util/a;->a()Lcn/cheln/explorer/util/a;

    move-result-object v0

    iget-object v1, v0, Lcn/cheln/explorer/util/a;->a:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Class;

    iget-object v2, v0, Lcn/cheln/explorer/util/a;->a:Ljava/util/Map;

    invoke-interface {v2, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {p0}, Lcom/direction/hold/ui/CommonActivity;->x()V

    goto :goto_1

    :pswitch_8
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    const/4 v1, 0x6

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/CommonActivity;->showDialog(I)V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/CommonActivity;->v()V

    goto/16 :goto_0

    :pswitch_9
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->notifyDataSetChanged()V

    goto/16 :goto_0

    :pswitch_a
    sget-object v0, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/PathActivity;->b(Z)V

    goto/16 :goto_0

    :pswitch_b
    iget-object p0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p0, Lcom/direction/hold/ui/PathActivity$ReadRuntime;

    sget-object v0, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    iget v1, p0, Lcom/direction/hold/ui/PathActivity$ReadRuntime;->b:I

    iget v2, p0, Lcom/direction/hold/ui/PathActivity$ReadRuntime;->c:I

    iget v3, p0, Lcom/direction/hold/ui/PathActivity$ReadRuntime;->a:I

    invoke-virtual {v0, v1, v4, v2, v3}, Lcom/direction/hold/ui/PathActivity;->a(ILcn/cheln/explorer/ds/a/c;II)V

    goto/16 :goto_0

    :pswitch_c
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    const/16 v1, 0x9

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/CommonActivity;->showDialog(I)V

    goto/16 :goto_0

    :pswitch_d
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$1;->a:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v0}, Lcom/direction/hold/ui/CommonActivity;->q()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030007

    invoke-virtual {v0, v1, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f080033

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/direction/hold/ui/CommonActivity$1$1;

    invoke-direct {v1, p0}, Lcom/direction/hold/ui/CommonActivity$1$1;-><init>(Lcom/direction/hold/ui/CommonActivity$1;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_4
        :pswitch_0
        :pswitch_5
        :pswitch_7
        :pswitch_3
        :pswitch_3
        :pswitch_0
        :pswitch_8
        :pswitch_0
        :pswitch_9
        :pswitch_a
        :pswitch_b
        :pswitch_c
        :pswitch_0
        :pswitch_d
        :pswitch_0
        :pswitch_6
    .end packed-switch
.end method
